package com.cheejee.goodscenter.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.cheejee.goodscenter.module.entity.SkuBrandProperties;
@Mapper
public interface SkuBrandPropertiesMapper {
	
    int deleteByPrimaryKey(Long id);

//    int insert(SkuBrandProperties record);

    int insertSelective(SkuBrandProperties record);

    SkuBrandProperties selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SkuBrandProperties record);

//    int updateByPrimaryKey(SkuBrandProperties record);
    
    // ################ 以上为mybatis generator生成 #####################
    
   	/**
   	 *
   	 * @param skuId
   	 * @param brandPropertiesTemplateId
   	 * @param propertiesName
   	 * @return
   	 */
   	List<SkuBrandProperties> selectBySelective(
   			@Param("skuId")Long skuId, 
   			@Param("brandPropertiesTemplateId")Integer brandPropertiesTemplateId, 
   			@Param("propertiesName")String propertiesName);
       
   	int deleteById(@Param("id")Long...id);

   	/**
   	 *
   	 * @param properties
   	 * @return
   	 */
   	int insertMany(@Param("properties")List<SkuBrandProperties> properties);

	/**
	 *
	 * @param skuId
	 * @return
	 */
	int deleteBySku(Long skuId);
}